<!--<?php print <<<EOT
-->
<div id="main">
<div id="breadCrumb">
	<strong><a href="index.php?m=house">新房首页</a></strong>
<!--#
if ($houseinfo['area']) {
#-->
	>> <a href="{$houseBaseUrl}q=list&area={$houseinfo['area']}">{$house_field['area'][$houseinfo['area']]['name']}</a>
<!--#
}
#-->
	>> <a href="{$houseBaseUrl}q=info&hid={$hid}">{$houseinfo['name']}</a>
</div>
<div id="banner" class="mb" style="background: url({$houseinfo['banner']}) no-repeat 0 0;">
	<div id="house-title">
		<h1>{$houseinfo['name']}</h1>
		<span class="status">
<!--#
if ($houseinfo['status'] == 1) {
#-->
			<span class="new">新盘</span>
<!--#
} elseif ($houseinfo['status'] == 2) {
#-->
			<span class="onsale">在售</span>
<!--#
} elseif ($houseinfo['status'] == 3) {
#-->
			<span class="rest">尾盘</span>
<!--#
} else {
#-->
			<span class="sold-out">售空</span>
<!--#
}
#-->
		</span>
	</div>
	<ul id="main-nav">
		<li class="current"><a href="{$houseBaseUrl}q=info&hid=$hid">楼盘信息</a></li>
		<li><a href="{$houseBaseUrl}q=album&hid=$hid">相册</a></li>
<!--#
if ($houseinfo['cyid']) {
#-->
		<li><a href="thread.php?cyid={$houseinfo['cyid']}">业主小区</a></li>
<!--#
}foreach ($houseinfo['nav'] as $key => $value) {
#-->
		<li><a href="{$value['link']}"{$value['a_style']}>{$value['title']}</a></li>
<!--#
}
#-->
	</ul>
	<div id="sub-nav">
		<b class="l"></b>
		<ul>
			<li><a href="{$houseBaseUrl}q=info&hid=$hid#house-infos">基本信息</a></li>
			<li><a href="{$houseBaseUrl}q=info&hid=$hid#house-detail">详细信息</a></li>
			<li><a href="{$houseBaseUrl}q=album&hid=$hid&typeid=1">户型图</a></li>
			<li><a href="{$houseBaseUrl}q=album&hid=$hid&typeid=2">样板间</a></li>
			<li><a href="{$houseBaseUrl}q=album&hid=$hid&typeid=3">实景图</a></li>
			<li><a href="{$houseBaseUrl}q=album&hid=$hid&typeid=4">规划图</a></li>
			<li><a href="{$houseBaseUrl}q=video&hid=$hid">视频</a></li>
			<li><a href="{$houseBaseUrl}q=info&hid=$hid#e-map">地图</a></li>
			<li class="current"><a href="{$houseBaseUrl}q=pricedetail&hid=$hid">价格明细</a></li>
			<li><a href="{$houseBaseUrl}q=info&hid=$hid#house-detail">周边配套</a></li>
			<li><a href="{$houseBaseUrl}q=evaluations&hid=$hid">楼盘点评</a></li>
		</ul>
		<b class="r"></b>
	</div>
</div>
<div class="cc mb">
<div class="w-715 fl">
<div id="detail" class="pw-hbox">
<div class="hd">
<h3>{$houseinfo['name']}<em>价格明细</em></h3>
</div>
<div class="bd">
<ul class="detail-list">
<!--
EOT;
foreach($price['contents'] as $key => $value){
$_property = $house_field['property'][$value['propertyid']]['name'];
$_paystatus = $house_field['paystatus'][$value['paystatusid']]['name'];
$_buildtype = $house_field['buildtype'][$value['buildtypeid']]['name'];
$currentprice = $value['currentprice'] ? $value['currentprice'].'元/平方米' : '';
print <<<EOT
-->
	<li class="item">
	<h4>$value[title]</h4>
	<table class="house-table">
		<tr>
			<th>开盘时间</th>
			<td>$value[opentime]</td>
			<th>交付时间</th>
			<td>$value[paytime]</td>
			<th>本期户数</th>
			<td>$value[hnum]</td>
		</tr>
		<tr>
			<th>交付标准</th>
			<td><a href="{$houseBaseUrl}q=list&paystatus=$value[paystatusid]">$_paystatus</a></td>
			<th>物业类型</th>
			<td><a href="{$houseBaseUrl}q=list&property=$value[propertyid]">$_property</a></td>
			<th>建筑类型</th>
			<td><a href="{$houseBaseUrl}q=list&buildtype=$value[buildtypeid]">$_buildtype</a></td>
		</tr>
		<tr>
			<th>当前价格</th>
			<td colspan="5"><strong>$currentprice</strong> <a href="{$houseBaseUrl}q=calculate">[贷款计算器]</a></td>
		</tr>
	</table>
	</li>
<!--
EOT;
}print <<<EOT
-->
</ul>
</div>
</div>
<br>
$price[pages]
</div>
<div class="w-235 fr">
<div class="house-tools mb">
<div class="hd">
<h3>同价位楼盘</h3>
<!-- <a class="more" href="#">更多>></a> --></div>
<div class="bd">
<ol class="pw-hlist house-list">
<!--#
$cache_newHouseByPrice = $pageCache->getData('newHouseByPrice');
foreach ($cache_newHouseByPrice as $key=> $value) { 
	$value[area] = $value[area] ? $value[area] : '&nbsp;';
	$value[aveprice] = $value[aveprice] ? $value[aveprice] : '&nbsp;';
	$value[state] = $value[state] ? $value[state] : '&nbsp;';
	$temp = $key + 1;
#-->
	<li><a href="$value[url]"><span class="house-name">{$temp}.{$value[name]}</span> <span>{$value[area]}</span> <span>{$value[aveprice]}</span> <span>{$value[state]}</span></a></li>
<!--# } #-->
</ol>
</div>
</div>
<div class="house-tools mb">
<div class="hd">
<h3>推荐楼盘</h3>
<!-- <a class="more" href="#">更多>></a> --></div>
<div class="bd">
<ol class="pw-hlist house-list">
<!--#
$cache_recommendHouse = $pageCache->getData('recommendHouse');
foreach ($cache_recommendHouse as $key=> $value) { 
	$value[area] = $value[area] ? $value[area] : '&nbsp;';
	$value[aveprice] = $value[aveprice] ? $value[aveprice] : '&nbsp;';
	$value[state] = $value[state] ? $value[state] : '&nbsp;';
	$temp = $key + 1;
#-->
	<li><a href="$value[url]"><span class="house-name">{$temp}.{$value[name]}</span> <span>{$value[area]}</span> <span>{$value[aveprice]}</span> <span>{$value[state]}</span></a></li>
<!--# } #-->
</ol>
</div>
</div>
<!-- <div style="border: 1px solid #d9d9d9; padding: 6px;">
	<div style="margin-bottom: 6px;"><a href="#"><img src="images/ad220x60.jpg" /></a></div>
	<div style="margin-bottom: 6px;"><a href="#"><img src="images/ad220x60.jpg" /></a></div>
	<div style="margin-bottom: 6px;"><a href="#"><img src="images/ad220x60.jpg" /></a></div>
	<div><a href="#"><img src="images/ad220x60.jpg" /></a></div>
</div> -->
</div>
</div>
<!-- <div class="mb"><a href="#"><img src="images/ad960.jpg" /></a></div> -->
</div>
<!--
EOT;
?>-->